home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-chemnitz.de!news
- From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: various troubles in UNIX
- Date: 10 Jan 96 12:02:11 GMT
- Organization: University of Technology Chemnitz, FRG
- Message-ID: <4d0a2h$8kb@pyrrhus-f.hrz.tu-chemnitz.de>
- References: <4cv3nn$dmn@jhunix.hcf.jhu.edu>
- NNTP-Posting-Host: mmu.hrz.tu-chemnitz.de
-
- felipe@jhunix.hcf.jhu.edu (Ryan Bobko) writes:
-
- >Basically, I'm trying to make something for terminals, with graphics akin
- >to NETHACK or MORIA. But how do you refresh the screen when something
- >moves? Just redrawing it is not a good alternative (as the system often
- >gets bogged down), but that's the extent of my knowledge.
-
- Maybe you should have a look at curses.
-
- >Also, on a more general note, how does one link separate code? Let's say
- >I have a program called "map.c" and one called "game.c," and I want to
- >call on "map" from "game." How would I do that?
-
- Maybe you should read your documentation. Keywords are linker, link, ln.
- map.c, game.c are not programs but sourcefiles containing functions and
- other stuff (most times variables). If you like to call a function which
- is coded in game.c from map.c just call it.
-
- Most compilers can take more than one c-file as argument and link
- automatically in this case.
-
- h.f.s.
- --
- Hans Friedrich Steffani
- Institut fuer Elektrische Maschinen und Antriebe
- TU Chemnitz-Zwickau
- e-mail: hans.steffani@e-technik.tu-chemnitz.de
-